package com.zsrt.java.day20161226.wrl.day161226.homework;

public class FunSum1to10 {
	public static void main(String[] args) {
		int sum = funSum(10);
		System.out.println(sum);
	}
	
	public static int funSum(int end){
		int sum =0;
		for(int begin = 1; begin <= end; begin++){
			sum = sum + begin;
		}
		return sum;
	}
}
